-
-
Notifications
You must be signed in to change notification settings - Fork 33
refactor(file_system): deduplicate read methods and use Vec<u8> #816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
How to use the Graphite Merge QueueAdd the label merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #816 +/- ##
==========================================
- Coverage 94.40% 94.26% -0.14%
==========================================
Files 17 17
Lines 3074 3071 -3
==========================================
- Hits 2902 2895 -7
- Misses 172 176 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #816 will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
## Summary Refactors the FileSystem trait to eliminate code duplication and improve maintainability: - Added `read()` method returning `Vec<u8>` as the primary file reading method - Deduplicated `read_to_string()` to call `read()` + UTF-8 validation - Removed `read_to_string_bypass_system_cache()` method (simplified API) - Updated `PackageJson::parse()` to work with `Vec<u8>` instead of `String` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
e7fea04 to
6b1c9ed
Compare
Summary
Refactors the FileSystem trait to eliminate code duplication and improve maintainability:
read()method returningVec<u8>as the primary file reading methodread_to_string()to callread()+ UTF-8 validationread_to_string_bypass_system_cache()method (simplified API)PackageJson::parse()to work withVec<u8>instead ofString🤖 Generated with Claude Code